package test2

object StreamTest {
  def main(args: Array[String]): Unit = {
    var l =(1 to 200)
    println(l.getClass)
    val g = l.toStream.groupBy(_%3==0)
    g.foreach(x=>{
      x._2.foreach(println)
    })
  }
}
